<%@page contentType="text/html; charset=UTF-8" %>
<%@include file="../../../webutil/tag.jsp" %>
<div class="fenyeinfo">
	<script>
	function gotoPage(urladdr) {
		var PerPage = $("#PerPage") ;
		urladdr = urladdr.indexOf("?") == -1?urladdr+"?d="+new Date().getTime()+"&pv.maxResult="+PerPage.val():urladdr+"&d="+new Date().getTime()+"&pv.maxResult="+PerPage.val();
		window.open(urladdr,"pageframe","");
	}
	</script>
	<div class="f1">每页<input id="PerPage" onkeyup="if(13==event.keyCode){gotoPage('${pageContext.request.contextPath}/${param.action}?pv.currentPage=1');}" type="text" class="SmallInput pgPerPage" value="${scrolldata.maxResult}" size="5" title="输入后回车确认">条</div>
	<div class="separator"></div>
	
	<c:choose>
		<c:when test="${empty scrolldata.currentPage || scrolldata.currentPage eq 1}">
			<div title="首页" class="pgBtn pgFirstDisabled"></div>
			<div title="上页" class="pgBtn pgPrevDisabled"></div>
		</c:when>
		<c:otherwise>
			<div title="首页" onclick="gotoPage('${pageContext.request.contextPath}/${param.action}?pv.currentPage=1')"  class="pgBtn pgFirst"></div>
			<div title="上页" onclick="gotoPage('${pageContext.request.contextPath}/${param.action}?pv.currentPage=${pv.currentPage != 1?pv.currentPage-1:1}')"  class="pgBtn pgPrev"></div>
		</c:otherwise>
	</c:choose>
	
	<div class="separator"></div>
	
	<div class="f1">第<input type="text" onkeyup="if(13==event.keyCode){if(this.value>${scrolldata.totalPage}){alert('输入的页码超出范围！')} else{gotoPage('${pageContext.request.contextPath}/${param.action}?pv.currentPage='+this.value)}}" title="页码，输入后回车确认" value="${scrolldata.currentPage}" size="5" class="SmallInput pgCurrentPage">页/共<span class="pgTotalPage">${scrolldata.totalPage}</span>页</div>
	<div class="separator"></div>
	
	<c:choose>
		<c:when test="${scrolldata.currentPage eq scrolldata.totalPage}">
			<div title="下页" class="pgBtn pgNextDisabled"></div>
			<div title="尾页" class="pgBtn pgLastDisabled"></div>
		</c:when>
		<c:otherwise>
			<div title="下页" onclick="gotoPage('${pageContext.request.contextPath}/${param.action}?pv.currentPage=${pv.currentPage+1}')" class="pgBtn pgNext"></div>
			<div title="尾页" onclick="gotoPage('${pageContext.request.contextPath}/${param.action}?pv.currentPage=${pv.totalPage}')" class="pgBtn pgLast"></div>
		</c:otherwise>
	</c:choose>
	
	<div class="separator"></div>
	
	<div class="pgSearchInfo">共&nbsp;${scrolldata.totalRecord}&nbsp;条记录
	
	显示第&nbsp;<span class="pgStartRecord">${scrolldata.firstResult}</span>&nbsp;条-第&nbsp;<span class="pgEndRecord">${scrolldata.lineSize}</span>&nbsp;条记录</div>
</div>
				
				